﻿using B.S.BaseData.ErrorCode;
using B.S.BaseData.Read.API.DTO;
using MediatR;

namespace B.S.BaseData.Read.API.Command.LeaveCommand
{
    public class QueryLeaveCommand:IRequest<APIPaging<LeaveDTO>>
    {
        /// <summary>
        /// 登录人id
        /// </summary>
        public int UserId { get; set; }
        public int DepartmentId { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 3;
        /// <summary>
        /// 请假人名称
        /// </summary>
        public string? LeaveName { get; set; }
        /// <summary>
        /// 请假开始时间
        /// </summary>
        public string? LeaveStartTime { get; set; }
        /// <summary>
        /// 请假结束时间
        /// </summary>
        public string? LeaveEndTime { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public int? ApprovalStatus { get; set; }
    }
}
